/**
 * Copyright (c) 2017, 西安星沙网络科技-版权所有
 *
 * Licensed under the GNU Lesser General Public License (LGPL) ,Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.gnu.org/licenses/lgpl-3.0.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.sstech.member.core.timer;

import java.io.Serializable;

public abstract class BaseTimerTask implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5891960491469452330L;

	/**
	 * 任务唯一标识
	 */
	protected String taskId = "";
	
	/**
	 * 任务名称
	 */
	protected String taskName = "";
	
	/**
	 * 是否执行完成
	 */
	protected boolean execFinish = false;
	
	/**
	 * 是否需要移除
	 */
	protected boolean isNeedRemove = false;
	
	/** 下次触发时间 */
	protected long iNextTriggerTime = 0;
	
	/**
	 * 执行任务
	 */
	protected abstract void handlerTask();

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public boolean isExecFinish() {
		return execFinish;
	}

	public void setExecFinish(boolean execFinish) {
		this.execFinish = execFinish;
	}

	public boolean isNeedRemove() {
		return isNeedRemove;
	}

	public void setNeedRemove(boolean isNeedRemove) {
		this.isNeedRemove = isNeedRemove;
	}

	public long getiNextTriggerTime() {
		return iNextTriggerTime;
	}

	public void setiNextTriggerTime(long iNextTriggerTime) {
		this.iNextTriggerTime = iNextTriggerTime;
	}
	
	
}
